#ifndef CUSTOMCHARTVIEW_H
#define CUSTOMCHARTVIEW_H

#include <QChartView>
#include <QSplineSeries>

class CustomChartView : public QtCharts::QChartView
{
    Q_OBJECT

public:
    CustomChartView(QWidget *parent = nullptr);

public Q_SLOTS:
    void onTemperatureChanged(float v);
    void onSrialPortStateChanged(int state);

private:
    QtCharts::QSplineSeries *m_series;
};

#endif // CUSTOMCHARTVIEW_H
